package hku.cs.lunuo.rank;

import hku.cs.lunuo.Global;

import java.io.File;
import java.util.List;

public class RankUIMain {

	public void main() {
//		Model jm = new StmtBasingModel();
		Model jm = new KBCModel();
		Global.v().model = jm;
		Global.v().voter = new Jaccard();
		Global.v().toDoDir = data;
		Global.v().modelName = "JKBC";
//		JjesModel jm = new JjesModel();
//		TarantulaModel jm = new TarantulaModel();
		jm.prepaerProfile(data, args);
		jm.analyze();
		jm.toStmt();
		jm.rank();
		File f = new File(data, "rank(JKBC).xml");
		jm.toXML(f);
		
	}


	File data;
	List<String> args;
	String algName;
	String md5;

	public RankUIMain(File data, List<String> args, String algName, String md5) {
		super();
		this.data = data;
		this.args = args;
		this.algName = algName;
		this.md5 = md5;
	}

}
